import { defineConfig } from 'dumi';
import { menus } from './menus';

export default defineConfig({
    title: 'ych-rc-core',
    mode: 'site',
    history: {
        type: "hash",
    },
    locales: [['zh-CN', '中文']],
    resolve: {
        includes: ['docs', 'packages/ych_hooks/src']
    },
    navs: [
        {
            title: 'React-Hooks',
            path: '/ych_hooks',
        },
        {
            title: 'GitHub',
            path: 'https://github.com/umijs/dumi',
        }
    ],
    menus: {
        '/': [{title:'首页',path:'index'}],
        '/ych_hooks': menus
    }
});
